package com.runssnail.demo.kafka.jms;


import javax.jms.JMSException;
import javax.jms.Topic;

/**
 * Default Topic
 *
 * <p/>
 * Created by zhengwei on 2015/8/27.
 */
public class DefaultTopic extends BaseDomain implements Topic {


    /**
     * topic name
     */
    private String name;

    public DefaultTopic(String name) {
        this.name = name;
    }

    @Override
    public String getTopicName() throws JMSException {
        return this.name;
    }

}
